.task-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.task_icon {
  width: 40px;
  height: 40px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  text-align: center;
  &.tool_bar {
    width: 24px;
    height: 24px;
  }
  &.start_event {
    background-image: url(./img/48/start_event_empty.png);
    &.norun {
      background-image: url(./img/48/norun/start_event_empty.png);
    }
    &.over {
      background-image: url(./img/48/over/start_event_empty.png);
    }
  }
  &.task_human {
    background: #ffffff;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    border: 2px solid #98a0ac;
    font-size: 12px;
    background-image: none; //正常白色
    .task_node_body {
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      color: #1d2129;
    }
    &.norun {
      // 未运行 灰色
      background-color: #f5f6f8; //背景色
      border: 2px solid #98a0ac;
      .task_node_header {
        background: #98a0ac;
        color: #ffffff;
      }
    }
    &.over {
      // 运行过 绿色
      background-color: #ffffff; //背景色
      border: 2px solid #35b098;
      .task_node_header {
        background: #35b098;
        color: #ffffff;
      }
    }
    &.back {
      // 回退 红色
      background-color: #feeae7; //背景色：f3ede5
      border: 2px solid #b00015;
      .task_node_header {
        background: #b00015;
      }
    }
    &.run {
      // 运行中 红色
      background-color: #ffffff; //背景色eaf4f2
      border: 2px solid #b00015;
      .task_node_header {
        background: #b00015;
        color: #ffffff;
      }
    }
    &.subrun {
      //暂停？
      border: 2px solid #996601;
      background-color: #f3ede5;
      .task_node_header {
        background: #996601;
      }
    }
    &.jumped {
      // 跳过
      border: 2px solid #fffb02;
      background-color: #f3ede5;
      .task_node_header {
        background: #fffb02;
      }
    }
    &.red {
      outline: 2px solid #b00015;
    }
    .task_node_header {
      height: 24px;
      line-height: 24px;
      background-color: #98a0ac;
      border-radius: 3px 3px 0 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      color: #ffffff;
      margin: -1px;
    }
    .task_node_user {
      font-size: 12px;
      height: 26px;
      padding: 4px 4px 0px 0px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      width: 124px;
      display: block;
      .icon_user {
        font-size: 14px;
        color: #1d2129;
        margin-right: 2px;
      }
    }
    .task_node_time {
      font-size: 12px;
      color: #1d2129;
    }
    .task_node_icon_top {
      position: absolute;
      left: 0;
      bottom: 80px;
      margin-bottom: 0;
      overflow: visible;
      vertical-align: bottom;
    }
    .task_node_icon {
      position: absolute;
      left: 0;
      margin-top: 8px;
      bottom: -20px;
    }
    .task_node_star {
      color: #fbb331;
    }
    .task_node_branches {
      display: inline-block;
      width: 15px;
      height: 15px;
      background-position: center;
      background-size: contain;
      background-repeat: no-repeat;
      // background-image: data-uri('./img/48/children_process.png');
      position: relative;
      top: 2px;
    }
    .node-icon {
      color: #482a15;
      font-size: 16px;
      margin-right: 5px;
    }
    .node-text {
      font-size: 12px;
      display: inline-block;
      margin-right: 5px;
    }
  }
  &.end_event {
    background-image: url(./img/48/end_event_terminate.png);
    &.norun {
      background-image: url(./img/48/norun/end_event_terminate.png);
    }
    &.over {
      background-image: url(./img/48/over/end_event_terminate.png);
    }
  }
  &.task_webservice {
    background-image: url(./img/48/task_webservice.png);
    &.norun {
      background-image: url(./img/48/norun/task_webservice.png);
    }
    &.over {
      background-image: url(./img/48/over/task_webservice.png);
    }
  }
  &.gateway_fork {
    background-image: url(./img/48/gateway_fork.png);

    &.norun {
      background-image: url(./img/48/norun/gateway_fork.png);
    }
    &.over {
      background-image: url(./img/48/over/gateway_fork.png);
    }
  }
  &.gateway_join {
    background-image: url(./img/48/gateway_join.png);
    &.norun {
      background-image: url(./img/48/norun/gateway_join.png);
    }
    &.over {
      background-image: url(./img/48/over/gateway_join.png);
    }
  }
  &.task_subprocess {
    background-image: url(./img/48/task_subprocess.png);
    &.norun {
      background-image: url(./img/48/norun/task_subprocess.png);
    }
    &.subrun {
      background-image: url(./img/48/run/task_subprocess.gif);
    }
    &.over {
      background-image: url(./img/48/over/task_subprocess.png);
    }
  }
  &.task_custom {
    background-image: url(./img/48/task_custom.png);
    &.run {
      background-image: url(./img/48/run/task_custom.gif);
    }
    &.norun {
      background-image: url(./img/48/norun/task_custom.png);
    }
    &.over {
      background-image: url(./img/48/over/task_custom.png);
    }
  }
}

.flow-detail .task-label {
  text-align: center;
  width: 40px;
  word-break: break-all;
}

.user-defined-icon {
  position: absolute;
  right: -22px;
  top: 0px;
  color: #0e42d2;
  width: 20px;
  height: 20px;
  cursor: pointer;
  background-image: url(./img/48/avatar.svg);
  background-repeat: no-repeat;
}
.jump-start-node-title {
  position: absolute;
  left: -20px;
  top: -30px;
  background-color: #1f76cb;
  width: 87px;
  height: 20px;
  line-height: 20px;
  color: #fff;
  text-align: center;
}
